#ifndef EDITORGUI_H
#define EDITORGUI_H

#include <QtGui/QMainWindow>

class Interface;
class QMenu;
class QStatusBar;
class QToolButton;
class QAction;
class QCloseEvent;

class EditorGui : public QMainWindow
{
	Q_OBJECT
	private slots:
		void changeWindowTitle(const QString& title);
		void quit();
		void hideOrShowWidgetsInStatusBar();
	public:
		EditorGui();
		~EditorGui();
		
		void openFiles(QStringList filesPathes);
	protected:
		void closeEvent(QCloseEvent *);
	private:
		void saveSettings();
		void loadSettings();
		
		Interface *interface;
	
		QMenu *helpMenu;
		
		QToolButton *settingsStatusBarButton;
		QToolButton *showStatusBarWidgetsButton;
		QMenu *statusBarMenu;
		QAction *showMenuBarAction;
		QAction *showTabsAction;
		
		QStatusBar *statusBar;
		QList<QWidget *> statusBarWidgets;
		bool showWidgetsInStatusBar;
};

#endif
